package com.yjs.app.trade.service.mapper.business.invoice;

import java.util.List;
import java.util.Map;

import com.yjs.app.trade.core.base.mybatis.annotation.MyBatisRepository;
import com.yjs.app.trade.entity.bean.DispatchInvoice;
import com.yjs.business.ecps.order.model.InvoiceInfo;

/**
 * 发票相关的dao层接口
 * @author Administrator
 *
 */
@MyBatisRepository	
public interface InvoiceMapper {

	/**
	 * 通过第三方接口获取扫描的发票数据
	 * 
	 * @return
	 */
	public Object findThirdPartyInvoice();

	/**
	 * 获取平台发票数据
	 * 
	 * @return
	 */
	public Map<String, Object> findPlatFormInovice( Map<String, Object> map);

	
	/**
	 * 查询所有发票信息
	 * @param InvoiceInfoId 发票id
	 * @return
	 */
	public InvoiceInfo findInvoiceInfo(String InvoiceInfoId);
	
	/**
	 * 配送方查询发票信息
	 * 
	 * @param dispatchInvoice
	 * @return
	 */
	public List<Map<String, Object>> findInvoice(DispatchInvoice dispatchInvoice);
	/**
	 * 根据发票查询订单信息
	 * @param invoiceInfoId
	 * @return 
	 */
	public List<Map<String, Object>> findProductByInvoice(String invoiceInfoId);
	/**
	 * 查询订单数量和产品数量
	 * @param invoiceInfoId
	 * @return
	 */
	public Map<String, Object> findInvoiceNum(String invoiceInfoId);
}
